#ifndef EMAILCOMM_H
#define EMAILCOMM_H


#include <boost/tokenizer.hpp>

#include "Command.h"
#include "Helper.h"

#include "InsertCommand.h"
#include "DeleteCommand.h"
#include "SelectCommand.h"
#include "VarcharCell.h"
#include "IntCell.h"
#include "Row.h"
#include <fstream>
using namespace boost;
using std::ifstream;


class EmailCommand :
	public Command
{
public:
	EmailCommand(SQLSystem* sql);
	~EmailCommand(void);
	virtual int execute(const string &str);
	int insertEmail(const string &str);
	int deleteEmail(const string &str);
	int searchEmail(const string &str);
	void search(const string &path, const string &content);
	int sortEmail(const string &str);
	Helper* helper;
};

#endif
